#include <Rectangle.h>

Rectangle::Rectangle(unsigned int length, unsigned int width): length_m(length), width_m(width)
{
}

unsigned int Rectangle::getPerimeter() const
{
    return 2 * (length_m + width_m);
}

unsigned int Rectangle::getArea() const
{
    return length_m * width_m;
}

unsigned int Rectangle::setLength(unsigned int length)
{
    length_m = length;
    return length_m;
}

unsigned int Rectangle::setWidth(unsigned int width)
{
    width_m = width;
    return width_m;
}
